 /**
 * Description: 统计分析
 * @author:jacky
 * @since:1.0.0
 *
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2018-05-15   jacky       1.0.0     Initial
 */
package com.metro.demo.analysis.beans.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.metro.core.beans.entity.BaseEntity;
import com.metro.demo.common.beans.constant.DicTypeEnum;
import com.metro.demo.common.utils.DicUtil;

import java.util.Date;
import com.metro.utils.DateUtil;
 /**
 * 统计分析<br>
 *
 * @author:jacky
 * @since:1.0.0
 * @version [1.0.0, 2018-05-15]
 */
@Data()
@EqualsAndHashCode(callSuper = false)
public class BizStatisticalAnalysisEntity extends BaseEntity{
    private static final long serialVersionUID=1L;
    //经销商代码
    private String code;
    //经销商名称
    private String name;
    //使用量
    private String useAmount;
    //索赔使用量
    private String claimAmount;
    //进厂量
    private String dayAmount;
    //小组
    private String implLeader;
    //使用率
    private String useRate;
    //实施时间
    private Date implTime;
    //采集日期
    private Date date;
    //批次
    private String count;
     //小组 暂时不用
    private String implGroup;


    public String getImplTimeStr() {
        return DateUtil.limitDay(this.implTime);
    }
    public String getDateStr() {
        return DateUtil.limitDay(this.date);
    }
    public String getCountStr() {
        return DicUtil.getName(DicTypeEnum.COUNT, this.getCount());
    }
}
